package segimasat.image;


import ij.ImagePlus;
import ij.gui.ImageCanvas;
import ij.gui.ImageWindow;
import ij.process.ImageProcessor;
import segimasat.pixel.PixelSum;


public abstract class Image{
    public ImagePlus impl;
    public ImageCanvas imc;
    public ImageWindow win;
    public ImageProcessor impr;

    public Image(ImagePlus impl){
        this.impl = impl;
        this.impr = impl.getProcessor();
    }

    public void show(){
        impl.show();
        this.imc = impl.getCanvas();
        this.win = impl.getWindow();
    }

    public abstract PixelSum newPixelFloat();
}